package entity;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.hibernate.mapping.Table;
import org.hibernate.metadata.ClassMetadata;

public class Entity implements LazyLoad {

	private ClassMetadata classMeta;
	
	private Table table ;
	
	private String entityName ;
	
	private String tableName ;
	
	private  Map<String, Field> attributes = new HashMap<String, Field>();
	
	public ClassMetadata getClassMeta() {
		return classMeta;
	}

	public void setClassMeta(ClassMetadata classMeta) {
		this.classMeta = classMeta;
	}

	public Table getTable() {
		return table;
	}

	public void setTable(Table table) {
		this.table = table;
	}

	public String getEntityName() {
		return entityName;
	}

	public void setEntityName(String entityName) {
		this.entityName = entityName;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public Map<String, Field> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, Field> attributes) {
		this.attributes = attributes;
	}

	/**
	 * get id fields ?
	 * @return
	 */
	List<Field> getPkFields() {
		return null ;
	}
	
	/**
	 * get Uk ?
	 * @return
	 */
	List<Field[]> getUkFields() {
		return null ;
	}

	public void load() {
		//TODO init
	}
	
}
